package edu.avans.hartigehap.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

@Entity
public abstract class WebDiscountInterface implements Serializable{

	private Long id;
	@Transient
	public abstract BigDecimal getDiscount();
	@Transient
	public abstract void setDiscount(BigDecimal discount);
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "WEBDISCOUNT_ID")
	public Long getId(){
		return id;
	}
	public void setId(Long id){
		this.id = id;
	}

	@Transient
	public abstract BigDecimal getFinalPrice(BigDecimal price);

}
